package com.eddie.facade;

/**
 * @author Eddie
 * @date 2022/08/02 09:21
 **/
public class TheatreLight {

    //单例模式,饿汉式
    private TheatreLight() {

    }

    private static final TheatreLight instance = new TheatreLight();

    public static TheatreLight getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("TheatreLight on");
    }

    public void off() {
        System.out.println("TheatreLight off");
    }

    public void dim() {
        System.out.println("TheatreLight dim");
    }

    public void bright() {
        System.out.println("TheatreLight bright");
    }
}

